-
Notifications
You must be signed in to change notification settings - Fork 18k
strings: build a string factory for safely and malloc limited converting bytes to string #32594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… limited allocations
This PR (HEAD: 9e96984) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/182057 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/182057. |
Message from Keith Randall: Patch Set 1:
So this is batching allocations in 4K chunks? Please don’t reply on this GitHub thread. Visit golang.org/cl/182057. |
Message from Jan Mercl: Patch Set 1: Code-Review-1 The StringFactory identifier and friends would be a good fit in Java perhaps. In Go not so much. The CL talks about And the most important: The proposal that this CL implements is about an hour old and has not been discussed nor accepted. Please do not start changing the language or the stdlib by sending a CL. The correct order is the other way around. Please don’t reply on this GitHub thread. Visit golang.org/cl/182057. |
Message from Matt Layher: Patch Set 1: Code-Review-2
Agreed, and giving temporary -2 because discussion should take place on the proposal before code is written. Please don’t reply on this GitHub thread. Visit golang.org/cl/182057. |
Message from Keith Randall: Patch Set 1: I think it is fine to send a CL along with a proposal. It's perhaps premature, but it's certainly better than most proposals which err in the other direction in being rather light on details. Note that the runtime already does this optimization, but with a batch size of 16 instead of 4K. Look for maxTinySize in src/runtime/mallocgc.go. Jack, any reason why you couldn't just make this a third-party library? Please don’t reply on this GitHub thread. Visit golang.org/cl/182057. |
a1b0af9
to
93a79bb
Compare
4a7ed1f
to
0f992b9
Compare
This PR is being closed because golang.org/cl/182057 has been abandoned. Proposal was declined. |
Simple solution for Issue #32593